// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Vuex from 'vuex'
import App from './App'
import router from './router'
import MintUI from 'mint-ui'
import './rem'
import 'mint-ui/lib/style.css'
import store from './store/index'
import Vconsole from 'vconsole';
import timestampToTime from './time'
import {is_weixin} from './wxVerify'
// if (!is_weixin()) { // 如果不是微信内置浏览器，就动态跳转到以下页面
//   window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx350a4cdef9c07561&redirect_uri=http://dxsd.jlxmall.com/Wxlogin/callback&response_type=code&scope=snsapi_base#wechat_redirect';
// }

Vue.config.productionTip = false
Vue.use(MintUI)
Vue.use(Vuex)
Vue.prototype.timestampToTime = timestampToTime;
Vue.prototype.$vConsole = new Vconsole();

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
